package com.example.mvpdemo.demo;

import android.os.Handler;

import com.example.mvpdemo.base.BasePresenter;

public class HomePresenter extends BasePresenter<HomeContract.View> implements HomeContract.Presenter {
    @Override
    public void getText() {
        mView.showDialog("请稍后", false);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                if (mView != null) {
                    mView.showText("I am HomePresenter");
                }
            }
        }, 5000);
    }
}
